package com.example.lotterysystem.controller.param;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class CreatePrizeParam implements Serializable {
    /**
     * 奖品名
     */
    @NotBlank(message = "奖品名不能为空！")
    private String prizeName;
    /**
     * 描述
     */
    private String description;
    /**
     * 价格
     */
    @NotNull(message = "奖品价格不能为空！")
    private BigDecimal price;

    public @NotBlank(message = "奖品名称不能为空！") String getPrizeName() {
        return prizeName;
    }

    public void setPrizeName(@NotBlank(message = "奖品名称不能为空！") String prizeName) {
        this.prizeName = prizeName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public @NotNull(message = "奖品价格不能为空！") BigDecimal getPrice() {
        return price;
    }

    public void setPrice(@NotNull(message = "奖品价格不能为空！") BigDecimal price) {
        this.price = price;
    }
}
